/*
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *如果数据库字段发生变化，请在代码生器重新生成此Model
 */
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VOL.Entity.SystemModels;

namespace VOL.Entity.DomainModels
{
    [Entity(TableCnName = "商品分类",TableName = "goods_category")]
[Table("goods_category")]
    public partial class GoodsCategory:BaseEntity
    {
        /// <summary>
       ///修改时间
       /// </summary>
       [Display(Name ="修改时间")]
       [Column(TypeName="datetime")]
       [Editable(true)]
       public DateTime? modified_time { get; set; }

       /// <summary>
       ///一级分类ID
       /// </summary>
       [Key]
       [Display(Name ="一级分类ID")]
       [Column(TypeName="bigint")]
       [Required(AllowEmptyStrings=false)]
       public long category_id { get; set; }

       /// <summary>
       ///分类名称
       /// </summary>
       [Display(Name ="分类名称")]
       [MaxLength(256)]
       [Column(TypeName="nvarchar(256)")]
       [Required(AllowEmptyStrings=false)]
       public string category_name { get; set; }

       /// <summary>
       ///分类编码
       /// </summary>
       [Display(Name ="分类编码")]
       [MaxLength(256)]
       [Column(TypeName="nvarchar(256)")]
       [Required(AllowEmptyStrings=false)]
       public string category_code { get; set; }

       /// <summary>
       ///父分类ID
       /// </summary>
       [Display(Name ="父分类ID")]
       [Column(TypeName="int")]
       [Required(AllowEmptyStrings=false)]
       public int parent_id { get; set; }

       /// <summary>
       ///分类层级
       /// </summary>
       [Display(Name ="分类层级")]
       [Column(TypeName="sbyte")]
       [Required(AllowEmptyStrings=false)]
       public sbyte category_level { get; set; }

       /// <summary>
       ///分类状态
       /// </summary>
       [Display(Name ="分类状态")]
       [Column(TypeName="sbyte")]
       public sbyte? category_status { get; set; }

       /// <summary>
       ///创建时间
       /// </summary>
       [Display(Name ="创建时间")]
       [Column(TypeName="datetime")]
       public DateTime? create_time { get; set; }

       
    }
}